package com.demo.svc;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

@Service("rsaencrypt")
public class RasEncrypt {
	
	@Resource(name="encrytFunc")
	private Encryption crypt;
	
	public Map<String,String> doRun(String content) throws Exception{
		
		Map<String,String>  response = new HashMap<String, String>();
		
		response.put("content", crypt.encryptionHex("我们都是东北人 ！哦哈哈哈哈 @@@@@@@@@@@"));
		response.put("N",crypt.getKeyN());
		response.put("E",crypt.getKeyE());
		response.put("D",crypt.getKeyD());
		
		return response;
	}
	
}
